/**
 * @ author: 汪孟苹
 */
define([],function($root){
	var tpl = {};

	/* 建档wrap */
	tpl.archiveWrap = function(){
		return archiveWrap();
	}
	
	var archiveWrap = function(){
		return  '<script id="tpl_addPatient_archiveWrap" type="text/html">'+
				'	<div class="archive-wrap">'+
				'		{{if list.length > 1}}'+
				'		<div class="schemes-box form-horizontal clearfix">'+
				'			{{if list.length <= 4}}'+
				'				<div class="qaCard form-group form-group-sm col-sm-6 col-md-6 grid-label-7">'+
				'					<label class="control-label">随访方案</label>'+
				' 			  		<div class="control-input radio">'+
				'						{{each list as value i}}'+
				'							<label class="radio-inline">'+
				'								<input type="radio" name="scheme" value="{{value.id}}" {{if i==0}}checked{{/if}}>'+
				'								{{value.schemeName}}'+
				'							</label>'+
				'						{{/each}}'+
				' 			 		</div>'+
				'				</div>'+
				'			{{else}}'+
				'				<div class="qaCard form-group form-group-sm col-sm-6 col-md-6 grid-label-7">'+
				'					<label class="control-label">随访方案</label>'+
				' 			  		<div class="control-input">'+
				'						<select class="form-control" name="scheme">'+
				'							{{each list as value i}}'+
				' 			  				<option value="{{value.id}}" {{if i==0}}selected{{/if}}>{{value.schemeName}}</option>'+
				'							{{/each}}'+
				'						</select>'+
				' 			 		</div>'+
				'				</div>'+
				'			{{/if}}'+
				'		</div>'+
				'		{{/if}}'+
				'	</div>'+
				'</script>';
	}

	return tpl;
});